package net.dgg.iboss.sc.backservice.task.service;

import net.dgg.iboss.sc.backservice.task.dao.credential.CertificateSpecialtyDao;
import net.dgg.iboss.sc.backservice.task.entity.credentail.CertificateSpecialty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

;

@Service
public class CertificateSpecialtyService {

    @Autowired
    private CertificateSpecialtyDao certificateSpecialtyDao;

    /**
     * 根据证书id查询证书绑定的证书基本类型
     *
     * @param id
     * @return
     */
    public List<CertificateSpecialty> findCertificateSpecialtyByCertificateId(Long id) {
        return certificateSpecialtyDao.findCertificateSpecialtyByCertificateId(id);
    }
}
